|
|
|
|
|
|
|
Figure 14.6.
Creating a new form for the File Transfer
example. |
|
|
|
|
|
|
|
|
You also need to set the text box properties Multiline and Scrollbar to True, and the File Transfer control property Protocol to icHttp. When the AccessType property is set, you can use the OpenURL method to retrieve data from the Internet. When you use the OpenURL method, the result will depend on the target URL. For example, add the following code to the command button to see how to return the HTML document found at www.microsoft.com: |
|
|
|
|
|
|
|
|
Text1.Text = Inet1, OpenURL(http://www.microsoft.com) |
|
|
|
|
|
|
|
|
When you run the application and click the command button, the text box will be filled with the HTML source (see Figure 14.7). |
|
|
|
|
|
|
|
|
Figure 14.7.
Retrieving the HTML source of any Web
page on the Internet. |
|
|
|
|
|